package com.model;

public class Response {
	public static enum Status {
		SUCCESS(200), ERROR(500);
		private int code;

		Status(int code) {
			this.code = code;
		}

		public int getCode() {
			return code;
		}
	}

	private Integer status = Status.SUCCESS.getCode();
	private Object result;

	public Integer getStatus() {
		return status;
	}

	public Response(Object result) {
		this.result = result;
	}

	public Response() {
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Object getResult() {
		return result;
	}

	public void setResult(Object result) {
		this.result = result;
	}

}
